/**
 * 
 */
package br.com.skynix.tcmc.converter;

import javax.faces.convert.FacesConverter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import br.com.skynix.tcmc.base.spring.IServiceAuditavel;
import br.com.skynix.tcmc.model.conta.Setor;
import br.com.skynix.tcmc.service.configuracao.geral.setores.SetorService;

/**
 * @author davi
 * 
 */
@FacesConverter(value = "Setor_Converter")
@Component
public class SetorConverter extends AbstractEntidadeAuditavelConverter<Setor> {

	@Autowired
	private SetorService setorService;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * br.com.skynix.tcmc.converter.AbstractEntidadeAuditavelConverter#getService
	 * ()
	 */
	@Override
	protected IServiceAuditavel<Setor> getService() {
		return setorService;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see br.com.skynix.tcmc.converter.AbstractEntidadeAuditavelConverter#
	 * getPropriedade()
	 */
	@Override
	protected String getPropriedade() {
		return "descricao";
	}
}
